package com.gsafety.wellsfort.dao.course;

import com.gsafety.wellsfort.domain.model.course.ExamAnswerRecord;
import com.gsafety.wellsfort.domain.model.course.WorkAnswerRecord;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface ExamAnswerRecordDAO {
    int deleteByPrimaryKey(Integer id);

    int deleteByStuExamId(Integer examId);

    int insert(ExamAnswerRecord record);

    int insertSelective(ExamAnswerRecord record);

    ExamAnswerRecord selectByPrimaryKey(Integer id);

    List<ExamAnswerRecord> selectByStuExamId(Integer examId);

    ExamAnswerRecord selectByStuExamIdAndQuestionId(@Param("stuExamId") Integer stuWorkId, @Param("questionId") Integer questionId);

    int updateByPrimaryKeySelective(ExamAnswerRecord record);

    int updateByPrimaryKey(ExamAnswerRecord record);
}